home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / WKE47F (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  794 b   |  19 lines

  1. package com.sun.java.swing.plaf.metal;
  2.  
  3. import com.sun.java.swing.AbstractButton;
  4. import com.sun.java.swing.plaf.basic.BasicButtonListener;
  5. import java.awt.Component;
  6. import java.awt.event.FocusEvent;
  7. import java.util.EventObject;
  8.  
  9. class MetalButtonListener extends BasicButtonListener {
  10.    public MetalButtonListener(AbstractButton b) {
  11.       super(b);
  12.    }
  13.  
  14.    public void focusGained(FocusEvent e) {
  15.       Component c = (Component)((EventObject)e).getSource();
  16.       c.repaint();
  17.    }
  18. }
  19.